﻿@{
    FollowPeers.Models.FollowPeersDBEntities followPeersDB = new FollowPeers.Models.FollowPeersDBEntities();
    string name = Membership.GetUser().UserName;
    FollowPeers.Models.UserProfile myprofile = followPeersDB.UserProfiles.SingleOrDefault(p => p.UserName == name);
    <div class="span2" style="border-right: 1px solid #eee; padding-right:10px;">
						<!--<div class="span2"><div class="hero-unit"></div></div>-->
						<ul class="thumbnails">
						<li class="span2">
						    <div class="thumbnail">
						      <a href="profile.html"><img src="@Html.Encode(myprofile.PhotoUrl)" class="img" alt=""/></a> 
						      <p>@myprofile.FirstName @myprofile.LastName</p>
						    </div>
						 </li>
						</ul>    
                <ul class="menu">
                    <li><a href="/Profile/Edit">
                        <img src="../../Content/images/icons/16x16/user.png" />Basic Info</a></li>
                    <li><a href="/Profile/UploadPhoto">
                        <img src="../../Content/images/icons/16x16/photo.png" />Photo</a></li>
                    <li><a href="/Profile/EditResearch">
                        <img src="../../Content/images/icons/16x16/document_stand.png" />Research</a></li>
                    <li><a href="/Profile/EditEducation">
                        <img src="../../Content/images/icons/16x16/blogs.png" />Education</a></li>
                     <li><a href="/Event/Index">
                        <img src="../../Content/images/icons/16x16/calendar.png" />Events</a></li>

                    @{ if (myprofile.Profession == "Individual")
                       {
                        <li><a href="/Profile/EditStudents">
                            <img src="../../Content/images/icons/16x16/ceo.png" />Students</a></li>
                       }
                    }
                    <li><a href="/Profile/EditContact">
                        <img src="../../Content/images/icons/16x16/book_addresses.png" />Contact</a></li>

                    @{ if (myprofile.Profession == "Corporate")
                       {
                        <li><a href="/Profile/EditPortfolio">
                            <img src="../../Content/images/icons/16x16/package.png" />Portfolio</a></li>
                       }
                    }

                    <li><a href="../../PublicationModel/Create">
                        <img src="../../Content/images/icons/16x16/advanced_data_grid.png" />Publication
                        </a></li>
                  
                    <li><a href="../../PatentModel/MyPatent">
                        <img src="../../Content/images/icons/16x16/advanced_data_grid.png" />Patent
                        </a></li>
                    <li><a href="/Course/Mine/">
                        <img src="../../Content/images/icons/16x16/blackboard_drawing.png" />My Courses</a></li>
                    <li><a href="/Event/Index">
                        <img src="../../Content/images/icons/16x16/calendar.png" />Events</a></li>
                </ul>
            </div>
}
